package com.greedy.user.service;

import com.greedy.user.mapper.UserMapper;
import com.greedy.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Greedy
 * @Date: Created in:2022-07-19 15:55
 * Description:
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 根据ID查询收件人所有的信息
     * @param id
     * @return
     */
    public User getUserById(Long id) {
        return userMapper.getUserById(id);
    }
}
